package kr.co.sdworld.webclient.spring.controller;

import kr.co.sdworld.api.apns.service.LoginService;
import kr.co.sdworld.webs.ServiceContext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class CT_Logout 
{
	@Autowired
	private LoginService loginService;
	
	@RequestMapping("/logout.sd")
	public ModelAndView logout() 
	{
		ServiceContext.getSession().invalidate();
		ModelAndView mnv = new ModelAndView("jsonView");
		mnv.addObject("result", "success");
		return mnv;
	}
}
